{# directory_tree.html #}
<ul class="list-unstyled">
{% comment %} {% for node in nodes %}
    <li>
        <div class="d-flex align-items-center" 
             data-bs-toggle="collapse" 
             href="#folder_{{ node.id }}">
            <i class="fa-solid fa-folder me-2 text-warning"></i>
            <a href="?folder_id={{ node.id }}" 
               class="text-decoration-none">{{ node.name }}</a>
        </div>
        <div class="collapse ms-3" id="folder_{{ node.id }}">
            {% with node.child.filter(file_type=2) as children %}
                {% if children %}
                    {% include 'inclusion/directory_tree.html' with nodes=children project_id=project_id %}
                {% endif %}
            {% endwith %}
        </div>
    </li>
{% endfor %}
</ul> {% endcomment %}